import 'package:flutter/material.dart';

import 'package:flutter_palette_generator_app/resources/sizes.dart';
class ClippedImage extends StatelessWidget {
  final String imagePath;
  ClippedImage({this.imagePath});
  static const BorderRadius borderRadius =  BorderRadius.all(Radius.circular(size_12));
  @override
  Widget build(BuildContext context) {
    return Material(
      elevation: size_8,
      child:  ClipRRect(
          borderRadius:borderRadius,
          child: Image.asset(imagePath,height: 180,width:120,fit: BoxFit.fitHeight ,)),
    );
  }
}
